package responses

import (
	"github.com/edgexfoundry/edgex-go/internal/app/dtos"
	"github.com/edgexfoundry/go-mod-core-contracts/v2/dtos/common"
)

type MultiProductFunctionsResponse struct {
	common.BaseWithTotalCountResponse `json:",inline"`
	ProductFunctions                  []dtos.ProductFunction `json:"productFunctions"`
}

func NewMultiProductFunctionsResponse(requestId string, message string, statusCode int, totalCount uint32, productFunctions []dtos.ProductFunction) MultiProductFunctionsResponse {
	return MultiProductFunctionsResponse{
		BaseWithTotalCountResponse: common.NewBaseWithTotalCountResponse(requestId, message, statusCode, totalCount),
		ProductFunctions:           productFunctions,
	}
}
